MCS_FLAGS = -debug

ASSEMBLY_NAME = Dashboard.Latte
ASSEMBLY = $(ASSEMBLY_NAME).exe

dashboarddir = $(pkglibdir)
dashboard_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

ASSEMBLY_REFERENCES = \
	-r:$(srcdir)/../Dashboard.Mint/Dashboard.Mint.dll \
	-r:$(srcdir)/../Dashboard.Engine/Dashboard.Engine.dll \
	-r:$(srcdir)/../Dashboard.Util/Dashboard.Util.dll \
	-r:$(srcdir)/../Dashboard/Dashboard.dll \
	-r:Mono.Cairo \
	$(GTKSHARP_LIBS) \
	$(GNOMESHARP_LIBS) \
	$(WNCKSHARP_LIBS)

ASSEMBLY_SOURCES = \
	$(srcdir)/Dashboard.Latte/ActionItem.cs \
	$(srcdir)/Dashboard.Latte/CairoFu.cs \
	$(srcdir)/Dashboard.Latte/Driver.cs \
	$(srcdir)/Dashboard.Latte/Latte.cs \
	$(srcdir)/Dashboard.Latte/Sidebar.cs \
	$(srcdir)/Dashboard.Latte/SidebarGroup.cs \
	$(srcdir)/Dashboard.Latte/Spring.cs \
	$(srcdir)/Dashboard.Latte/TilePage.cs \
	$(srcdir)/Dashboard.Latte/XKeybinder.cs

$(ASSEMBLY): $(ASSEMBLY_SOURCES)
	$(MCS) $(MCS_FLAGS) -target:exe -out:$@ $(ASSEMBLY_REFERENCES) $(ASSEMBLY_SOURCES)

WRAPPER = dashboard-latte
WRAPPER_SOURCE = $(WRAPPER).in
bin_SCRIPTS = $(WRAPPER)

EXTRA_DIST = $(ASSEMBLY_SOURCES) $(WRAPPER_SOURCE)
CLEANFILES = $(ASSEMBLY) *.dll *.exe $(WRAPPER)
DISTCLEANFILES = *.mdb
MAINTAINERCLEANFILES = Makefile.in
